package com.xpc.rpc.spi.factory;

import com.xpc.rpc.annotation.SPI;

@SPI
public interface ExtensionFactory {

    /**
     * 获取扩展类对象
     * @param key
     * @param clazz
     * @param <T>
     * @return
     */
    <T> T getExtension(String key,Class<T> clazz);
}
